var net =require('net');
var alldata='';

var client=net.connect({port:8080},function()
{
    console.log('连接服务器成功');
});

client.on('data',function(data)
{
    alldata+=data;
    console.log('recv:',data);
    client.end();
});

client.on('end',function()
{
    console.log('断开与服务器的连接');
});
